﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ext.Master" AutoEventWireup="true" CodeBehind="Controls.TreeEvents.aspx.cs" Inherits="Demo.Tree.Controls_TreeEvents" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel runat="server">
        <ContentTemplate>
            <ext:TreePanel runat="server" ID="tree1" Title="异步加载数据" DataUrl="/Common/GetTreeNodes.ashx"
                RootId="0" Width="300" Height="500" AutoPostBack="true" OnNodeClick="tree1_NodeClick"
                OnNodeSelectChanged="tree1_NodeSelectChanged" OnNodeCollapse="tree1_NodeCollapse" OnNodeExpand="tree1_NodeExpand">
                <TriggerPostBackEvents NodeClick="true" NodeSelectChanged="true" NodeCollapse="true" NodeExpand="true" />
            </ext:TreePanel>
            <div style="color: red;">
                <asp:Label ID="lblMessage" Text="" runat="server" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
